package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 讲解@RequestMapping注解的使用
 * @author stone
 */
@Controller
public class RequestMappingController {

    // 使用注解的value属性做URL路径映射
    @RequestMapping({"index","home","home/index","hello*","home/*"})
    @ResponseBody
    public BaseRespVo index() {
        return BaseRespVo.ok();
    }

}
